package ru.paswd.marketprice.data.mappers

import ru.paswd.marketprice.api.dto.PriceWithShop

object PriceWithShopMapper {
    fun fromDto(priceWithShop: PriceWithShop?) = ru.paswd.marketprice.data.models.PriceWithShop(
            priceWithShop?.price,
            ShopMapper.fromDto(priceWithShop?.shop),
            priceWithShop?.distance,
            priceWithShop?.dateTime
    )
}